# Contributor: j.r <j.r@jugendhacker.de>
# Maintainer: j.r <j.r@jugendhacker.de>
pkgname=py3-tg
_pyname=tg
pkgver=0.17.0
pkgrel=2
pkgdesc="Terminal telegram client that really works"
url="https://github.com/paul-nameless/tg"
arch="noarch !s390x"
license="Unlicense"
depends="python3 py3-telegram py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/paul-nameless/tg/archive/refs/tags/v$pkgver.tar.gz
	0001-Change-setup.py-to-accept-new-python-telegram-ver.patch"
builddir="$srcdir/$_pyname-$pkgver"
options="!check"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
8e72317baad9117f542188d62fc599cccb02212311bd75a8acf1221da960ad0b67d58408d458828633a8baa8e3b62e6f3ceb5ec9800b5cb291497c016f444afd  py3-tg-0.17.0.tar.gz
a9549ce7749235e8310cf1b79408ecfab3cabcbbc4c4189f396cd35eb957dd96bd66f7b076a2b2ea37d77fbc78c64bff55b791f0e6cb5ae6a86f70566d2b74c1  0001-Change-setup.py-to-accept-new-python-telegram-ver.patch
"
